List = list(map(int, input().split()))
a = []
Bool = False
k = 1
a1 = []
Count = 0
while k < len(List):
    for i in range(0, List[k]):
        a1.append(int(Bool))
        Count += 1
        if Count % List[0] == 0:
            a.append(a1)
            array1 = []
    k += 1
    Bool = not Bool
Count = 0
for i in range(0, List[0]):
    for j in range(0, List[0]):
        print(a[j][i], end = '')
        Count += 1
        if Count % List[0] == 0:
            print()
#存放所有行，形成二维数组，然后用中间变量存放bool值，把每一个bool值放入行内，在按照矩阵的转置输出